import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'eos-icons:cronjob',
      title: $t('page.job.title'),
    },
    name: 'job',
    path: '/job',
    // component: () => import('#/views/job/index.vue'),
    children: [
      {
        meta: {
          icon: 'oui:nav-manage',
          title: $t('page.job.manage'),
        },
        name: 'jobManage',
        path: '/job/manage',
        component: () => import('#/views/job/manage/index.vue'),
      },
      {
        meta: {
          icon: 'ix:log',
          title: $t('page.job.log'),
        },
        name: 'jobLog',
        path: '/job/log',
        component: () => import('#/views/job/log/index.vue'),
      },
    ],
  },
];

export default routes;
